package com.wy.dao;

import com.wy.pojo.Role;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface RoleDao extends JpaRepository<Role,Integer> {

    @Query(value = "select * from role  where id=?1",nativeQuery = true)
    public List<Role> findBId(Integer id);
}
